import React from 'react'
import './Card.scss'

export default function Card(props) {
  const { style, onClick } = props
  return (
    <div className='card' style={style} onClick={onClick}>
      {
        props.close &&
        <div className='close' onClick={props.close}>x</div>
      }
      {props.children}
    </div>
  )
}
